<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:a4j="http://richfaces.org/a4j">

	<h:panelGroup>
		<p:dataTable value="#{serviceprofileList}" var="sp" rows="15"
			emptyMessage="No Data" paginator="true" paginatorPosition="bottom">

			<p:column sortBy="#{sp.name}" filterBy="#{sp.name}">
				<f:facet name="header">
					<h:outputText value="Name" />
				</f:facet>
				<h:outputText value="#{sp.name}" />
			</p:column>

			<p:column sortBy="#{sp.description}" filterBy="#{sp.description}">
				<f:facet name="header">
					<h:outputText value="Description" />
				</f:facet>
				<h:outputText value="#{sp.description}" />
			</p:column>

			<p:column>
				<f:facet name="header">
					<h:outputText value="Operations" />
				</f:facet>
				<h:form>
					<h:commandButton id="editButton" image="/images/wrench-32.png"
						action="#{editServiceprofileBean.editServiceprofile}">
						<f:setPropertyActionListener value="#{sp}"
							target="#{serviceprofile}" />
					</h:commandButton>
					<p:tooltip for="editButton" value="Edit service profile" />
				</h:form>
			</p:column>
		</p:dataTable>
		<br />
		<h:form>
			<p:commandButton action="#{editServiceprofileBean.newServiceprofile}"
				value="Add New Service Profile" ajax="false" />
		</h:form>
	</h:panelGroup>
</ui:composition>